$(function () {
    //图标隐藏菜单
    $(".entrance").hover(function () {
        $(this).children(".user-menu").show();
    }, function () {
        $(this).children(".user-menu").hide();
    });

    $('.action .detailed').each(function () {
        $(this).click(function () {
            detailed_content();
            return false;
        });
    });

    $('.action .thinkbox-image').each(function () {
        $(this).click(function () {
            thinkbox_image();
            return false;
        });
    });

    (function () {
        var $nav = $("#nav"), $current = $nav.children("[data-key=" + $nav.data("key") + "]");
        if ($nav.length) {
            $current.addClass("current");
        } else {
            $("#nav").children().first().addClass("current");
        }
    })();

});
